package com.assessment.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.assessment.dao.NewcomeMapper;
import com.assessment.entity.Eliminate;
import com.assessment.entity.Newcome;

@Service
public class NewcomService {
	
	@Resource
	private NewcomeMapper newcomeMapper;
	
	public List<Newcome> getNew(){
		return this.newcomeMapper.selNewCome();
	}
	
	public void updNewcome(Newcome newcome){
		this.newcomeMapper.updNewCome(newcome);
	}

	public Newcome selOne(Integer id){
		return newcomeMapper.selOne(id);
	} 
	
	public void delNew(Newcome newcome){
		this.newcomeMapper.delNew(newcome);
	}
	
	public void addNew(Newcome newcome){
		this.newcomeMapper.addNew(newcome);
	}
}
